//
//  WBCollectionViewCell.swift
//  XLWibo-Swift
//
//  Created by 王林 on 2016/11/17.
//  Copyright © 2016年 木木. All rights reserved.
//

import UIKit

class WBCollectionViewCell: UICollectionViewCell {

    @IBOutlet weak var judetementGif: UIImageView!
    @IBOutlet weak var imgView: UIImageView!
    var picInfo:WBPictureInfo?{
        didSet{
            let url = URL(string: (picInfo?.wap360)!)
            imgView.sd_setImage(with: url)
            self.judetementGif.isHidden = !picInfo!.thumbnail_pic!.hasSuffix("gif")
        }
    }
    
    override func awakeFromNib() {
        super.awakeFromNib()
       
    }

}
